Current Location: Home> Function Categories> filter_input_array

filter_input_array

Get a series of external variables and can be processed through filters
Name:filter_input_array
Category:Filter
Programming Language:php
One-line Description:Get multiple inputs from outside the script and filter them.

Definition and usage

filter_input_array() function gets multiple inputs from outside the script and filters them.

This function does not require repeated calls to filter_input() , which is useful for filtering multiple input variables.

This function can obtain input from various sources:

  • INPUT_GET
  • INPUT_POST
  • INPUT_COOKIE
  • INPUT_ENV
  • INPUT_SERVER
  • INPUT_SESSION (Not yet implemented)
  • INPUT_REQUEST (Not yet implemented)

If successful, the filtered data is returned, and if failed, false.

grammar

 filter_input ( input_type , args )
parameter describe
input_type Required. Specify the input type. See the possible types in the list above.
args

Optional. Specifies an array of filter parameters.

The legal array key is the variable name. The legal value is the filter ID, or an array of specified filters, flags, and options.

This parameter can also be a separate filter ID, if so, all values ​​in the input array are filtered by the specified filter.

Similar Functions
Popular Articles